package createthread;

/**
 * @description:
 * @author: jhy
 * @time: 2021/4/10 20:56
 */

//创建线程方式1：继承Thread类，重写run方法
public class CreateThreadDemo1 extends Thread{

    @Override
    public void run() {
        System.out.println("创建线程方式1：继承Thread类，重写run方法");
    }

    public static void main(String[] args) {

        CreateThreadDemo1 createThreadDemo1 = new CreateThreadDemo1();
        createThreadDemo1.start();
    }
}
